<template>
  <ConfigProvider :theme="theme">
    <router-view v-slot="{ Component }">
      <component :is="Component"/>
    </router-view>
  </ConfigProvider>
</template>

<script setup>

import { ConfigProvider } from 'vant';
import {computed, ref} from "vue";
import store from "@/store/index";
// 是否开启深色模式
const theme = computed(() => store.state.color_model)
</script>

<style>

</style>
